<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:73:"C:\wamp\www\projectTwo\public/../application/index\view\index\pbcate.html";i:1539268570;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>知之</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" href="/static/index/layui/css/layui.css">
    <link rel="stylesheet" href="/static/index/css/global.css">
    <script src="/static/index/layui/layui.js"></script>
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/admin/css/xadmin.css">
    <script type="text/javascript" src="/static/admin/js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/static/admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
</head>
<body>
    <iframe  src='/head' scrolling="no" width="100%" height="65px" ></iframe>
    <div class="main layui-clear">
        <div class="wrap">
            <div class="content" style="margin-right:0">
                <div class="fly-tab">
                    <span>
                        <a href="/">全部</a>
                        <?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;if($c['zz_cate_name'] == $name): ?>
                        <a href="../problemCate/<?php echo $c['zz_cate_name']; ?>" class="tab-this problemAll"><?php echo $c['zz_cate_name']; ?></a>
                        <?php else: ?>
                        <a href="../problemCate/<?php echo $c['zz_cate_name']; ?>"><?php echo $c['zz_cate_name']; ?></a>
                        <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                    </span>


                    <form action="/" class="fly-search">
                        <input class="layui-input" autocomplete="off" placeholder="请输入您想搜索的问题" type="text" name="search">
                        <button class="iconfont icon-sousuo layui-btn layui-btn-xs"></button>
                    </form>
                    <a href="Add/add" class="layui-btn jie-add">发布问题</a>
                </div>


                <ul class="fly-list">
                    <?php if(empty($num)): ?>
                    <li class="fly-list-li">
                        <h2 class="fly-tip">
                            <a href="../add">暂无此类问题,可前去提问</a>
                        </h2>
                    </li>
                    <?php else: if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                    <li class="fly-list-li">

                        <?php if(empty($useres)): if(empty($v['zz_icon'])): ?>
                        <a href="../log/login" class="fly-list-avatar">
                            <img src="/static/index/images/uer.jpg" alt="">
                        </a>
                        <?php else: ?>
                        <a href="../log/login" class="fly-list-avatar">
                            <img src="/static/index/uploads/<?php echo $v['zz_icon']; ?>" alt="">
                        </a>
                        <?php endif; else: if(empty($v['zz_icon'])): ?>
                        <a href="../tocenter/<?php echo $v['zz_uid']; ?>" class="fly-list-avatar">
                            <img src="/static/index/images/uer.jpg" alt="">
                        </a>
                        <?php else: ?>
                        <a href="../tocenter/<?php echo $v['zz_uid']; ?>" class="fly-list-avatar">
                            <img src="/static/index/uploads/<?php echo $v['zz_icon']; ?>" alt="">
                        </a>
                        <?php endif; endif; ?>

                        <h2 class="fly-tip">
                            <a href="../details/<?php echo $v['zz_problem_id']; ?>"><?php echo $v['zz_problem_tit']; ?></a>
                        </h2>
                        <p>
                            <span><a href=""><?php echo $v['zz_name']; ?></a></span>
                            <span><?php echo $v['zz_problem_time']; ?></span>
                            <span class="fly-list-hint">
                                <i class="iconfont" title="回答">&#xe60c;</i> <?php echo count($num[$v['zz_problem_id']]); ?>
                            </span>
                        </p>
                    </li>
                    <?php endforeach; endif; else: echo "" ;endif; endif; ?>
                </ul>

                <div class="page">
                    <?php echo $list->render(); ?>
                </div>

            </div>
        </div>
    </div>
</body>
<script>
function problemCate($cateName) {
    alert($cateName);
}
</script>

</html>